repo: Add an API to read and parse directory metadata
authorColin Walters <walters@verbum.org>
Wed, 15 Dec 2021 18:57:54 +0000 (13:57 -0500)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:57 +0000 (12:53 -0400)
commitd1731d0ea82a3a1c323d57a0c407ec16a42535a3
tree61736716774a2dad14db3f2315e08ea23be45a1a
parentf01c847a682b676470626ea9e4686c593eba2a87
repo: Add an API to read and parse directory metadata

The fact that the uid/gid/mode are big endian bit me when I was
trying to parse this "by hand" in ostree-rs-ext.

Let's add a footgun-free API for this.

(And yeah, we should probably do the same for the other variant types)
rust-bindings/rust/src/core.rs
rust-bindings/rust/src/repo.rs
rust-bindings/rust/tests/repo/mod.rs